import myaxios from '../myAxios'
import baseUrl from '../baseUrl'
const BASEURL = baseUrl.BMDURL
const cinemaApi = {
    // 所有影院类型
    cinemaTags(){
        let url = BASEURL + '/cinema/tags'
        return myaxios.get(url)
    },
    // 发送新增影院请求
    addCinema(params){
        let url = BASEURL + '/cinema/add'
        return myaxios.post(url,params)
    },
    // 查询所有电影院列表
    queryAll(){
        let url = BASEURL + '/cinemas'
        return myaxios.get(url)
    },
    deleteCinema(params){
        let url = BASEURL + '/cinema/del'  
        return myaxios.post(url,params)
    },
    // 查询电影院信息
    queryCinema(params){
        let url = BASEURL + '/cinema/query'
        return myaxios.get(url,params)
    },
    // 修改影院信息
    upDateCinema(params){
        let url = BASEURL + '/cinema/update'
        return myaxios.post(url,params)
    },
    // 查询放映厅列表
    queryCnemaRoom(params){
        let url = BASEURL + '/cinema-room/query'
        return myaxios.get(url,params)
    },
    // 查询放映厅类型
    querytype(){
        let url = BASEURL + '/cinema-room/types'
        return myaxios.get(url)
        
    }    
}
export default  cinemaApi
